package com.biz.primus.ms.commodity.dao.ro;


import com.biz.primus.base.redis.annotation.FieldSortedSet;
import com.biz.primus.base.redis.annotation.Ro;
import com.biz.primus.base.redis.annotation.RoSortedSet;
import com.biz.primus.base.redis.bean.BaseRedisObject;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author yangzichun
 * @date 2017/2/9
 */
@Data
@Ro(key = "product:EvaluationRo")
@RoSortedSet(key = "list", score = "evaluationTime")
public class EvaluationRo extends BaseRedisObject<Long> implements Serializable {
    private static final long serialVersionUID = 7965176419294948828L;
    //商品id
    @FieldSortedSet(key = "productId", score = "evaluationTime")
    private Long productId;
    //商品名称
    private String productName;
    //店铺id
    @FieldSortedSet(key = "vendorId", score = "evaluationTime")
    private Long vendorId;
    //会员id
    private Long memberId;
    //会员账号
    private String accountName;
    //评论时间
    private Timestamp evaluationTime;
    //描述相符评分
    private Integer descriptionScore;
    //物流评分
    private Integer logisticsScore;
    //服务态度评分
    private Integer atitudeScore;
    //评论内容
    private String content;
    //评论图片
    private String images;
    //关联订单号
    private String orderCode;
    //商品编号
    @FieldSortedSet(key = "productCode", score = "evaluationTime")
    private String productCode;

}
